package com.sunday.common.core.exception;

import com.sunday.common.core.enums.ErrorCodeEnum;
import org.springframework.lang.Nullable;

/**
 * 业务异常
 *
 * @author zsy
 * @since 2022/10/14
 */
public class BusinessException extends CoreException {

    public BusinessException(ErrorCodeEnum errorCodeEnum) {
        super(errorCodeEnum);
    }

    public BusinessException(String code, String message) {
        super(code, message);
    }

    public BusinessException(ErrorCodeEnum errorCodeEnum, @Nullable String message) {
        super(errorCodeEnum, message);
    }

    public BusinessException(ErrorCodeEnum errorCodeEnum, @Nullable String message, boolean isAppend) {
        super(errorCodeEnum, message, isAppend);
    }

    public BusinessException(String errorCode, String errorMessage, @Nullable String message, boolean isAppend) {
        super(errorCode, errorMessage, message, isAppend);
    }

}
